<?php

class Aspiracion extends CI_Controller{
private $data;
	public function __construct(){
		parent::__construct();
		$this->data['url1']=site_url(array("aspiracion","aspiracion","guardar"));
	}
	
	public function index(){
		$this->load->view("cabecera");
		$this->load->view("aspiracion/insert",$this->data);
	}
	
	public function guardar(){
		$nombre=$this->input->post("nombre");
		$this->load->model("aspiracion/aspiracion_model");
		echo $this->aspiracion_model->insert($nombre);
	}
}